package com.enjoy.concurrent.ch1.waitnotify;

public class WaitNotifyCase {

    public static void main(String[] args) throws InterruptedException {
        Express express = new Express(0, "BEIJING");
        new Thread(express::waitInstance,"t1").start();
        new Thread(express::waitSite,"t2").start();


        Thread.sleep(10000);

        express.changeSite();
        express.changeDistance();
    }
}
